package gov.chinatax.ctcps.generator.dao.pojo;

import java.io.Serializable;
import java.math.BigDecimal;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;

/** 
 *        @hibernate.class
 *         table="CZDZ_DZBSJ"
 *     
*/
public class CzdzDzbsj implements Serializable {

    /** identifier field */
    private String bh;

    /** persistent field */
    private String czdzbbh;

    /** persistent field */
    private String zffsDm;

    /** persistent field */
    private String zclxDm;

    /** persistent field */
    private String yskmbh;

    /** persistent field */
    private BigDecimal gszcje;

    /** persistent field */
    private BigDecimal czdrje;

    /** persistent field */
    private BigDecimal ce;

    /** nullable persistent field */
    private String lrrq;

    /** nullable persistent field */
    private String sx;

    /** nullable persistent field */
    private String zt1;

    /** nullable persistent field */
    private String zt2;
    
    private String yslxDm;
    
    private String cysm;

   

	/** full constructor */
    public CzdzDzbsj(String bh, String czdzbbh, String zffsDm, String zclxDm, String yskmbh, BigDecimal gszcje, BigDecimal czdrje, BigDecimal ce, String lrrq, String sx, String zt1, String zt2, String yslxDm,String cysm) {
        this.bh = bh;
        this.czdzbbh = czdzbbh;
        this.zffsDm = zffsDm;
        this.zclxDm = zclxDm;
        this.yskmbh = yskmbh;
        this.gszcje = gszcje;
        this.czdrje = czdrje;
        this.ce = ce;
        this.lrrq = lrrq;
        this.sx = sx;
        this.zt1 = zt1;
        this.zt2 = zt2;
        this.yslxDm = yslxDm;
        this.cysm = cysm;
    }

    public String getCysm() {
		return cysm;
	}

	public void setCysm(String cysm) {
		this.cysm = cysm;
	}

	/** default constructor */
    public CzdzDzbsj() {
    }

    /** minimal constructor */
    public CzdzDzbsj(String bh, String czdzbbh, String zffsDm, String zclxDm, String yskmbh, BigDecimal gszcje, BigDecimal czdrje, BigDecimal ce) {
        this.bh = bh;
        this.czdzbbh = czdzbbh;
        this.zffsDm = zffsDm;
        this.zclxDm = zclxDm;
        this.yskmbh = yskmbh;
        this.gszcje = gszcje;
        this.czdrje = czdrje;
        this.ce = ce;
    }

    /** 
     *            @hibernate.id
     *             generator-class="assigned"
     *             type="java.lang.String"
     *             column="BH"
     *         
     */
    public String getBh() {
        return this.bh;
    }

    public void setBh(String bh) {
        this.bh = bh;
    }

    /** 
     *            @hibernate.property
     *             column="CZDZBBH"
     *             length="50"
     *             not-null="true"
     *         
     */
    public String getCzdzbbh() {
        return this.czdzbbh;
    }

    public void setCzdzbbh(String czdzbbh) {
        this.czdzbbh = czdzbbh;
    }

    /** 
     *            @hibernate.property
     *             column="ZFFS_DM"
     *             length="2"
     *             not-null="true"
     *         
     */
    public String getZffsDm() {
        return this.zffsDm;
    }

    public void setZffsDm(String zffsDm) {
        this.zffsDm = zffsDm;
    }

    /** 
     *            @hibernate.property
     *             column="ZCLX_DM"
     *             length="2"
     *             not-null="true"
     *         
     */
    public String getZclxDm() {
        return this.zclxDm;
    }

    public void setZclxDm(String zclxDm) {
        this.zclxDm = zclxDm;
    }

    /** 
     *            @hibernate.property
     *             column="YSKMBH"
     *             length="50"
     *             not-null="true"
     *         
     */
    public String getYskmbh() {
        return this.yskmbh;
    }

    public void setYskmbh(String yskmbh) {
        this.yskmbh = yskmbh;
    }

    /** 
     *            @hibernate.property
     *             column="GSZCJE"
     *             length="16"
     *             not-null="true"
     *         
     */
    public BigDecimal getGszcje() {
        return this.gszcje;
    }

    public void setGszcje(BigDecimal gszcje) {
        this.gszcje = gszcje;
    }

    /** 
     *            @hibernate.property
     *             column="CZDRJE"
     *             length="16"
     *             not-null="true"
     *         
     */
    public BigDecimal getCzdrje() {
        return this.czdrje;
    }

    public void setCzdrje(BigDecimal czdrje) {
        this.czdrje = czdrje;
    }

    /** 
     *            @hibernate.property
     *             column="CE"
     *             length="16"
     *             not-null="true"
     *         
     */
    public BigDecimal getCe() {
        return this.ce;
    }

    public void setCe(BigDecimal ce) {
        this.ce = ce;
    }

    /** 
     *            @hibernate.property
     *             column="LRRQ"
     *             length="14"
     *         
     */
    public String getLrrq() {
        return this.lrrq;
    }

    public void setLrrq(String lrrq) {
        this.lrrq = lrrq;
    }

    /** 
     *            @hibernate.property
     *             column="SX"
     *             length="10"
     *         
     */
    public String getSx() {
        return this.sx;
    }

    public void setSx(String sx) {
        this.sx = sx;
    }

    /** 
     *            @hibernate.property
     *             column="ZT1"
     *             length="50"
     *         
     */
    public String getZt1() {
        return this.zt1;
    }

    public void setZt1(String zt1) {
        this.zt1 = zt1;
    }

    /** 
     *            @hibernate.property
     *             column="ZT2"
     *             length="50"
     *         
     */
    public String getZt2() {
        return this.zt2;
    }

    public void setZt2(String zt2) {
        this.zt2 = zt2;
    }

    public String getYslxDm() {
		return yslxDm;
	}

	public void setYslxDm(String yslxDm) {
		this.yslxDm = yslxDm;
	}
    
    public String toString() {
        return new ToStringBuilder(this)
            .append("bh", getBh())
            .toString();
    }

    public boolean equals(Object other) {
        if ( !(other instanceof CzdzDzbsj) ) return false;
        CzdzDzbsj castOther = (CzdzDzbsj) other;
        return new EqualsBuilder()
            .append(this.getBh(), castOther.getBh())
            .isEquals();
    }

    public int hashCode() {
        return new HashCodeBuilder()
            .append(getBh())
            .toHashCode();
    }

}
